#import <UIKit/UIKit.h>
#import <UIKit/UIView.h>
#import <UIKit/UITransitionView.h>
#import <UIKit/UIProgressIndicator.h>
#import <UIKit/UIProgressHUD.h>
#import "Switcher.h"
#import "MyPreferencesTable.h"
#import "Page1.h"
#import "Page2.h"
#import "Page3.h"
#import "Page4.h"
#import "PrefsView.h"

@class Switcher;

@interface MainView : UIView
{
	UITransitionView *transView;
    UINavigationBar  *navBar;
    UINavigationItem *navItem;
	Switcher *controller;
	CGRect viewRect;
	UITextView *textView;
	UIProgressHUD *progressView;
	MyPreferencesTable *preferencesTable;
	
	UIView *pages[4];
	int currentPageIndex;
	BOOL preferences;
	BOOL mode;
	BOOL currentModeLoaded;
}

- (id) initWithFrame:(CGRect)frame controller:(Switcher *)co;
- (void) dealloc;
- (UINavigationBar *) createNavBar:(CGRect)rect;
- (void) navigationBar:(UINavigationBar *)navbar buttonClicked:(int)button;
- (void) editing:(BOOL)mode;
- (void) log:(NSString *)message;

@end
